/**
 * @Author：ming
 * @Date：2023/9/30 4:45 PM
 * @Filename：Lc167
 */

/**
 * @author ming
 */
public class Lc167 {
    public int[] twoSum(int[] numbers, int target) {
        int len = numbers.length;
        int index1 = -1;
        int index2 = -1;
        for (int i = 0; i < len-1; i++) {
            for (int j = len-1; j >i ; j--) {
                if(numbers[i]+numbers[j]==target){
                    index1 =i;
                    index1 =j;
                    break;
                }

            }
        }
        return new int[]{index1,index2};
    }
}
